home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cat2
/
standard
/
setpgid.z
/
setpgid
Wrap
Text File
|
1998-10-20
|
5KB
|
133 lines
sssseeeettttppppggggiiiidddd((((2222)))) sssseeeettttppppggggiiiidddd((((2222))))
NNNNAAAAMMMMEEEE
_ssss_eeee_tttt_pppp_gggg_iiii_dddd - set process group ID
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
_####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_tttt_yyyy_pppp_eeee_ssss_...._hhhh_>>>>
_####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_uuuu_nnnn_iiii_ssss_tttt_dddd_...._hhhh_>>>>
_iiii_nnnn_tttt _ssss_eeee_tttt_pppp_gggg_iiii_dddd_((((_pppp_iiii_dddd______tttt _pppp_iiii_dddd_,,,, _pppp_iiii_dddd______tttt _pppp_gggg_iiii_dddd_))))_;;;;
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_ssss_eeee_tttt_pppp_gggg_iiii_dddd sets the process group ID of the process with ID _p_i_d to _p_g_i_d. If
_p_g_i_d is equal to _p_i_d, the process becomes a process group leader. If
_p_g_i_d is not equal to _p_i_d, the process becomes a member of an existing
process group.
If _p_i_d is equal to 0, the process ID of the calling process is used. If
_p_g_i_d is equal to 0, the process specified by _p_i_d becomes a process group
leader.
_ssss_eeee_tttt_pppp_gggg_iiii_dddd fails and returns an error if one or more of the following are
true:
_EEEE_AAAA_CCCC_CCCC_EEEE_SSSS _p_i_d matches the process ID of a child process of the
calling process and the child process has successfully
executed an _eeee_xxxx_eeee_cccc(2) function.
_EEEE_IIII_NNNN_VVVV_AAAA_LLLL _p_g_i_d is not a valid process group id value.
_EEEE_IIII_NNNN_VVVV_AAAA_LLLL The calling process has a controlling terminal that does
not support job control.
_EEEE_PPPP_EEEE_RRRR_MMMM The process indicated by the _p_i_d argument is a session
leader.
_EEEE_PPPP_EEEE_RRRR_MMMM _p_i_d matches the process ID of a child process of the
calling process and the child process is not in the same
session as the calling process.
_EEEE_PPPP_EEEE_RRRR_MMMM _p_g_i_d does not match the process ID of the process
indicated by the _p_i_d argument and there is no process with
a process group ID that matches _p_g_i_d in the same session
as the calling process.
_EEEE_SSSS_RRRR_CCCC_HHHH _p_i_d does not match the process ID of the calling process
or of a child process of the calling process.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
_eeee_xxxx_eeee_cccc(2), _eeee_xxxx_iiii_tttt(2), _ffff_oooo_rrrr_kkkk(2), _gggg_eeee_tttt_pppp_iiii_dddd(2), _gggg_eeee_tttt_pppp_gggg_iiii_dddd(2), _ssss_eeee_tttt_ssss_iiii_dddd(2),
_tttt_cccc_ssss_eeee_tttt_pppp_gggg_rrrr_pppp(3T).
PPPPaaaaggggeeee 1111
sssseeeettttppppggggiiiidddd((((2222)))) sssseeeettttppppggggiiiidddd((((2222))))
DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
Upon successful completion, _ssss_eeee_tttt_pppp_gggg_iiii_dddd returns a value of 0. Otherwise, a
value of -1 is returned and _eeee_rrrr_rrrr_nnnn_oooo is set to indicate the error.
PPPPaaaaggggeeee 2222